/*top显示时间*/
function clockon()
{var date=new Date();
var YY=date.getYear();
var MM=date.getMonth()+1;
var DD=date.getDate();
var KK=date.getDay();
var HH=date.getHours();
var mm=date.getMinutes();
var SS=date.getSeconds();
if (MM<10) MM="0"+MM;
if (DD<10) DD="0"+DD;
if (HH<10) HH="0"+HH;
if (mm<10) mm="0"+mm;
if (SS<10) SS="0"+SS;
switch (KK){ 
   case 1:    KK="星期一";    break;
   case 2:    KK="星期二";    break;
   case 3:    KK="星期三";    break;
   case 4:    KK="星期四";    break;
   case 5:    KK="星期五";    break;
   case 6:    KK="星期六";    break;
   case 0:    KK="星期日";    break;
}
var str_date="当前时间："+YY+"年"+MM+"月"+DD+"日 "+KK+" "+HH+":"+mm+":"+SS;
if(document.all){
time.innerHTML=str_date;
}
var timer=setTimeout("clockon()",200);
}
/*top显示时间*/

/*显示隐藏menu框架*/
function menu_cont()
{
   var img = document.frames.leftFrame1.document.images("line_img");
     if(img.alt=="显示")
	{
		img.alt="隐藏";
		img.src="resources/images/line_lft.jpg";
        document.getElementById("lftfreme").cols="171,*";
		}
	 else if(img.alt=="隐藏")
	 {
		img.alt="显示";
        img.src="resources/images/line_rgt.jpg";	
	    document.getElementById("lftfreme").cols="0,*";
		 }
	}
/*显示隐藏menu框架*/

/*显示隐藏菜单*/
function menu_sh(nub,tem,len)
{
	var img_ob=document.getElementById("tb_tr"+nub);
	for(var i=1;i<=len;i++)
	{
	  var img_obj=document.getElementById("tb_tr"+i);
	  var img_bg=document.getElementById("tb_t"+i);
	  img_obj.style.display="none"; 
	  img_bg.style.background="url(resources/images/menu_sor.jpg) no-repeat left top";
	   }
    img_ob.style.display="block";
	tem.style.background="url(resources/images/menu_cha.jpg) no-repeat left top";
	
	}
/*显示隐藏菜单*/

/*表单checkbox全选*/
function checkAll(e, itemName)   
{   
  var aa = document.getElementsByName(itemName);   
  for (var i=0; i<aa.length; i++)   
   aa[i].checked = e.checked;   
}   
function checkItem(e, allName)   
{   
  var all = document.getElementsByName(allName)[0];   
  if(!e.checked) all.checked = false;   
  else   
  {   
    var aa = document.getElementsByName(e.name);   
    for (var i=0; i<aa.length; i++)   
     if(!aa[i].checked) return;   
    all.checked = true;   
  }   
} 
/*表单checkbox全选*/

/*表格变色*/

/*表格变色*/
